-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate with Github CI #1413
Integrate with Github CI #1413
Conversation
almet
commented
Nov 18, 2023
•
edited
Loading
edited
- Create Github Actions to run the tests
- Make github actions use postgres
- Make Playwright work
- Support for python 3.12
- Format the files
- Make the linter happy
83603fc
to
7f11066
Compare
3ae1b17
to
80ffd4d
Compare
The error is now, trying to fix it by specifying the
|
50e2331
to
dd7cda0
Compare
Now upgrading the postgres version to 12, as its the minimum required version for Django. |
Now installing playwright :-) |
Playwright is failing with stuff like:
|
May be that the HTML is not the map page one, but a 404 or anything like that ? |
34596d1
to
6356517
Compare
] | ||
test = [ | ||
"factory-boy==3.2.1", | ||
"playwright==1.38.0", | ||
"playwright>=1.39,<2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to be able to support python 3.12.
] | ||
dependencies = [ | ||
"Django>=4.1", | ||
"Django>=4.2,<5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test suite fails otherwise with Django 4.1 (see #1426)
"pytest-playwright==0.4.2", | ||
|
||
"pytest-playwright>=0.4.3,<1", | ||
"pytest-xdist>=3.5.0,<4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is useful to speedup the tests.
|
||
if "TRAVIS" in os.environ: | ||
if os.environ.get("GITHUB_ACTIONS", False) == "true": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration for Github Actions.
@@ -1,17 +1,18 @@ | |||
import json | |||
import socket | |||
from datetime import date, timedelta | |||
from datetime import date, datetime, timedelta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes warning about datetime that should be time aware.
33951df
to
b36c516
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎁 🙌
This runs the tests for different python versions, with different working sets, and also run a linter.